﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Claim
/// </summary>
namespace CE.Board
{
    public class Board
    {
        public Board()
        {
            ClearFields();
        }

        private int _ceoBoardId;
        private string _subject;
        private string _question;
        private string _answer;
        private string _name;
        private string _email;
        private string _phone;
        private bool _isPublished;
        private Int64 _questionBy;
        private Int64 _answerBy;
        private string _senderIP;

        public int CEOBoardId
        {
            get { return _ceoBoardId; }
            set { _ceoBoardId = value; }
        }

        public string Subject
        {
            get { return _subject; }
            set { _subject = value; }
        }

        public string Question
        {
            get { return _question; }
            set { _question = value; }
        }

        public string Answer
        {
            get { return _answer; }
            set { _answer = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }

        public bool IsPublished
        {
            get { return _isPublished; }
            set { _isPublished = value; }
        }

        public Int64 QuestionBy
        {
            get { return _questionBy; }
            set { _questionBy = value; }
        }

        public Int64 AnswerBy
        {
            get { return _answerBy; }
            set { _answerBy = value; }
        }

        public string SenderIP
        {
            get { return _senderIP; }
            set { _senderIP = value; }
        }

        private DateTime _questiondate;
        public DateTime QuestionDate
        {
            get { return _questiondate; }
            set { _questiondate = value; }
        }

        private DateTime? _answerdate;
        public DateTime? AnswerDate
        {
            get { return _answerdate; }
            set { _answerdate = value; }
        }

        public void ClearFields()
        {
            _ceoBoardId = 0;
            _subject = "";
            _question = "";
            _answer = "";
            _name = "";
            _email = "";
            _phone = "";
            _isPublished = false;
            _questionBy = 0;
            _answerBy = 0;
            _senderIP = "";
            _questiondate = DateTime.Now;
            _answerdate = null;
        }

    }
}